package com.example.renren.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.example.renren.dao.UserDao;
import com.example.renren.entity.User;
import com.example.renren.service.UserService;


@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public IPage<User> getByPage(Page<User> page) {
        QueryWrapper queryWrapper = new QueryWrapper();

        return userDao.selectPage(page,queryWrapper);
    }

}